package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *      用户通行记录实体类
 * </desc>
 *
 * @createDate 2017/11/09
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ItlTables("time_task_device_pass_record")
public class TimeTaskDevicePassRecordPO extends BasePO implements Serializable{
    @ItlField(value = "pd_id",logicKey = "key")
    private String pdId;                            //逻辑主键
    @ItlField("user_id")
    private String userId;                         //用户id
    @ItlField("project_id")
    private String projectId;                       //项目id
    @ItlField("device_type")
    private Integer deviceType;                   //设备类型：1电梯 2门禁 3云对讲  对应枚举类 DeviceTypeEnum
    @ItlField("device_unique")
    private String deviceUnique;                 //设备序列号
    @ItlField("device_name")
    private String deviceName;                      //设备名称
    @ItlField("open_type")
    private Integer openType;                   //通行方式,1-点击，2-自动感应，3-摇一摇,  4-电话开门,5-访客开门,6-自主开门,7-密码开门 对应枚举类 OpenTypeEnum
    @ItlField("pass_time")
    private Date passTime;                      //通行时间
    @ItlField("upload_time")
    private Date uploadTime;                    //上传时间，APP将通行记录上传至云端的时间
    @ItlField("check_time")
    private Date checkTime;                     //一卡通同步时间
    @ItlField("open_count")
    private Integer openCount;                  //一次开门请求的次数，蓝牙开放统计数据
    @ItlField("qq_num")
    private String qqNum;                           //QQ号码,开门响应的QQ号码
    @ItlField("room_num")
    private String roomNum;                      //房间编号
    @ItlField("is_open")
    private Integer isOpen;                     //开门结果,0表示开门成功，1表示开门失败或拒绝开门
    @ItlField("synchro")
    private Integer synchro;                    //是否同步到具体设备通行记录表 0未同步 1已同步
    @ItlField("begin_visit_time")
    private Date beginVisitTime;                //开始通话时间
    @ItlField("end_visit_time")
    private Date endVisitTime;                  //结束通话时间
    @ItlField("face_pic_url")
    private String facePicUrl;                  //人脸识别图片url
    @ItlField("call_phone_no")
    private String callPhoneNo;                 //被呼叫的电话
    @ItlField("dynamic_password")
    private String dynamicPassword;             //动态密码
    @ItlField("qrcode")
    private String qrcode;                      //二维码的生成信息
    @ItlField("visitor_uuid")
    private String visitorUuid;                 //访客随机字符串 与访客通行密码记录表中的UUID相关联
    @ItlField("correlation_id")
    private String correlationId;               //从iot开门指令中获取到的事件唯一id
    @ItlField("online")
    private Integer online;                     //sdk类型 1在线 2离线
    @ItlField("pass_id")
    private String passId;                      //访客二维码id
    @ItlField("timescount")
    private Integer timescount;                 //是否计次：1是 0否
    @ItlField("last_pass_count")
    private Integer lastPassCount;              //剩余通行次数
    @ItlField("qrcode_source")
    private Integer qrcodeSource;               //二维码来源
    @ItlField("system_type")
    private Integer systemType;                 //系统类型 1家半径 2一卡通
    @ItlField("room_detail")
    private String roomDetail;                  //房间信息 楼栋单元房间相拼接
    @ItlField("source")
    private Integer source;                     //通行来源
    @ItlField("from_floor")
    private String fromFloor; //出发楼层
    @ItlField("to_floor")
    private String toFloor;   //目标楼层


}
